package com.lele.SpringSecurity.service.impl;

import com.lele.SpringSecurity.dao.PermissionDao;
import com.lele.SpringSecurity.domain.Permission;
import com.lele.SpringSecurity.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private PermissionDao permissionDao;
    @Override
    public List<Permission> getPermissionByUsername(String username) {
        return permissionDao.getPermissionByUsername(username);
    }
}
